package com.parktech.sun.domain.model.sunhz;

import javax.persistence.*;

/**
 * User: Think
 * Date: 11-1-9
 * Time: 下午2:10
 */
@Entity
public class IndustryAttachment {

    private Long id;

    private String name;

    private Industry industry;

    public IndustryAttachment() {
    }

    public IndustryAttachment(String originalFilename) {
        name = originalFilename;
    }

    public IndustryAttachment(String originalFilename, Industry industry) {
        name = originalFilename;
        this.industry = industry;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    @ManyToOne
    public Industry getIndustry() {
        return industry;
    }

    public void setIndustry(Industry industry) {
        this.industry = industry;
    }
}
